#ifndef SENDDATAWORKER_H
#define SENDDATAWORKER_H

#include <QObject>

class SendDataWorker : public QObject {
  Q_OBJECT
public:
  explicit SendDataWorker(QObject *parent = nullptr);
  void stop();

  void setFilePath(const QString &filePath);

  void setNumLoops(int numLoops);

public slots:
  void start();

signals:
  void sigSendRow(QString data);
  void finished();

private:
  QString m_filePath; // 数据文件路径
  bool m_run;         // 运行控制标志
  int m_numLoops;     // 遍历次数
};

#endif // SENDDATAWORKER_H
